package com.study.seckill.service;

import com.study.dto.UserDTO;
import com.study.seckill.service.impl.UserServiceImpl;
import com.study.util.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigInteger;

/**
 * @ClassName: UserService
 * @Author: wYin
 * @Date: 2022/3/11 15:09
 */
@FeignClient(value = "service-rbac",fallback = UserServiceImpl.class)
public interface UserService {
    @GetMapping("/rbac/user/getById/{id}")
    public ResponseResult<UserDTO> getById(@PathVariable("id")Integer id);
}
